package com.hxzy.source.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hxzy.source.entity.TtSourceOperation;
import com.hxzy.source.mapper.TtSourceOperationMapper;
import com.hxzy.source.service.TtSourceOperationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mingqian.Wu
 * @since 2023-06-26
 */
@Service
@DataSource(DataSourceType.SOURCE)
public class TtSourceOperationServiceImpl extends ServiceImpl<TtSourceOperationMapper, TtSourceOperation> implements TtSourceOperationService {

    @Override
    public List<TtSourceOperation> getList(String id) {

        QueryWrapper<TtSourceOperation>queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("source_id",id);
        List<TtSourceOperation> ttSourceOperations = baseMapper.selectList(queryWrapper);
        return ttSourceOperations;

    }
}
